<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>老师布置的四个作业</title>
	<script type="text/javascript">
		arr=[212,123,13,1,41,432,141242,41,212,212,1,13]
			function quchong (x) {
				for (var i = 0 ; i < x.length; i++) {
					for (var j = i+1; j < x.length; j++) {
						if (x[i]=x[j]) {
							x.splice(j,1);
							alert(x);
						}
					}
				return x;
			}
		
			}
			res=quchong(arr);

			alert(res);




	</script>
</head>
<body>
	
</body>
</html>